package com.mycompany.myproject.config;

import com.mycompany.myproject.service.CarService;
import com.mycompany.myproject.service.CarServiceImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Lazy;

@Configuration
public class MyConfiguration {

	@Bean(initMethod = "initMethod", destroyMethod = "destroyMethod")
	@Lazy
	public CarService carService(){
		return new CarServiceImpl();
	}

}
